.class public Lcom/netease/util/HttpUtils;
.super Ljava/lang/Object;
.source "HttpUtils.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/netease/util/HttpUtils$PrintThread;
    }
.end annotation


# static fields
.field public static final DEFAULT_SCHEME_NAME:Ljava/lang/String; = "http"

.field public static final GET:Ljava/lang/String; = "GET"

.field public static final POST:Ljava/lang/String; = "POST"

.field private static final TAG:Ljava/lang/String; = "HttpUtils"

.field public static final TIMEOUT:I = 0xbb8

.field public static final USER_AGENT:Ljava/lang/String; = "NTES Android"

.field public static final WAP_PROXY_PORT:I = 0x50

.field public static final WAP_PROXY_URL:Ljava/lang/String; = "10.0.0.172"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 49
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$0(Ljava/lang/String;Ljava/util/List;[Lorg/apache/http/Header;Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/HttpResponse;)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 479
    invoke-static/range {p0 .. p5}, Lcom/netease/util/HttpUtils;->print(Ljava/lang/String;Ljava/util/List;[Lorg/apache/http/Header;Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/HttpResponse;)V

    return-void
.end method

.method public static doHttpExecute(Lorg/apache/http/client/HttpClient;Ljava/lang/String;Ljava/util/List;[Lorg/apache/http/Header;Ljava/lang/String;Ljava/lang/String;)Lorg/apache/http/HttpResponse;
    .locals 7
    .parameter "httpClient"
    .parameter "url"
    .parameter
    .parameter "headers"
    .parameter "method"
    .parameter "encoding"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/apache/http/client/HttpClient;",
            "Ljava/lang/String;",
            "Ljava/util/List",
            "<",
            "Lorg/apache/http/NameValuePair;",
            ">;[",
            "Lorg/apache/http/Header;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ")",
            "Lorg/apache/http/HttpResponse;"
        }
    .end annotation

    .prologue
    .line 336
    .local p2, params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    const/4 v2, 0x0

    .line 337
    .local v2, request:Lorg/apache/http/client/methods/HttpUriRequest;
    const-string v4, "POST"

    invoke-virtual {v4, p4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_4

    .line 338
    new-instance v1, Lorg/apache/http/client/methods/HttpPost;

    invoke-direct {v1, p1}, Lorg/apache/http/client/methods/HttpPost;-><init>(Ljava/lang/String;)V

    .line 339
    .local v1, post:Lorg/apache/http/client/methods/HttpPost;
    if-eqz p2, :cond_1

    .line 341
    :try_start_0
    new-instance v4, Lorg/apache/http/client/entity/UrlEncodedFormEntity;

    .line 342
    invoke-static {p5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v5

    if-eqz v5, :cond_0

    const-string p5, "UTF-8"

    .end local p5
    :cond_0
    invoke-direct {v4, p2, p5}, Lorg/apache/http/client/entity/UrlEncodedFormEntity;-><init>(Ljava/util/List;Ljava/lang/String;)V

    .line 341
    invoke-virtual {v1, v4}, Lorg/apache/http/client/methods/HttpPost;->setEntity(Lorg/apache/http/HttpEntity;)V
    :try_end_0
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0

    .line 347
    :cond_1
    :goto_0
    move-object v2, v1

    .line 356
    .end local v1           #post:Lorg/apache/http/client/methods/HttpPost;
    :cond_2
    :goto_1
    const/4 v3, 0x0

    .line 357
    .local v3, response:Lorg/apache/http/HttpResponse;
    if-eqz v2, :cond_3

    .line 359
    :try_start_1
    invoke-static {p0, v2, p3}, Lcom/netease/util/HttpUtils;->doHttpExecute(Lorg/apache/http/client/HttpClient;Lorg/apache/http/client/methods/HttpUriRequest;[Lorg/apache/http/Header;)Lorg/apache/http/HttpResponse;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    move-result-object v3

    .line 371
    :cond_3
    :goto_2
    return-object v3

    .line 343
    .end local v3           #response:Lorg/apache/http/HttpResponse;
    .restart local v1       #post:Lorg/apache/http/client/methods/HttpPost;
    :catch_0
    move-exception v0

    .line 344
    .local v0, e:Ljava/io/UnsupportedEncodingException;
    const-string v4, "HttpUtils"

    const-string v5, "doHttpExecute error!!!"

    invoke-static {v4, v5, v0}, Lcom/netease/util/Logger;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_0

    .line 348
    .end local v0           #e:Ljava/io/UnsupportedEncodingException;
    .end local v1           #post:Lorg/apache/http/client/methods/HttpPost;
    .restart local p5
    :cond_4
    const-string v4, "GET"

    invoke-virtual {v4, p4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_2

    .line 349
    if-eqz p2, :cond_6

    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result v4

    if-lez v4, :cond_6

    .line 350
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "?"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    .line 351
    invoke-static {p5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v5

    if-eqz v5, :cond_5

    const-string p5, "UTF-8"

    .line 350
    .end local p5
    :cond_5
    invoke-static {p2, p5}, Lorg/apache/http/client/utils/URLEncodedUtils;->format(Ljava/util/List;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 353
    :cond_6
    new-instance v2, Lorg/apache/http/client/methods/HttpGet;

    .end local v2           #request:Lorg/apache/http/client/methods/HttpUriRequest;
    invoke-direct {v2, p1}, Lorg/apache/http/client/methods/HttpGet;-><init>(Ljava/lang/String;)V

    .restart local v2       #request:Lorg/apache/http/client/methods/HttpUriRequest;
    goto :goto_1

    .line 360
    .restart local v3       #response:Lorg/apache/http/HttpResponse;
    :catch_1
    move-exception v0

    .line 361
    .local v0, e:Ljava/lang/Exception;
    invoke-interface {v2}, Lorg/apache/http/client/methods/HttpUriRequest;->abort()V

    .line 362
    const-string v4, "HttpUtils"

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "doHttpExecute error!!! "

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5, v0}, Lcom/netease/util/Logger;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_2
.end method

.method private static doHttpExecute(Lorg/apache/http/client/HttpClient;Lorg/apache/http/client/methods/HttpUriRequest;[Lorg/apache/http/Header;)Lorg/apache/http/HttpResponse;
    .locals 3
    .parameter "httpClient"
    .parameter "request"
    .parameter "headers"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .prologue
    .line 384
    if-eqz p2, :cond_0

    .line 385
    array-length v2, p2

    const/4 v1, 0x0

    :goto_0
    if-lt v1, v2, :cond_1

    .line 389
    :cond_0
    invoke-interface {p0, p1}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v1

    return-object v1

    .line 385
    :cond_1
    aget-object v0, p2, v1

    .line 386
    .local v0, header:Lorg/apache/http/Header;
    invoke-interface {p1, v0}, Lorg/apache/http/client/methods/HttpUriRequest;->addHeader(Lorg/apache/http/Header;)V

    .line 385
    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method

.method public static getAndroidHttpClient(Landroid/content/Context;)Lcom/netease/util/http/AndroidHttpClient;
    .locals 2
    .parameter "context"

    .prologue
    .line 424
    const-string v1, "NTES Android"

    invoke-static {v1, p0}, Lcom/netease/util/http/AndroidHttpClient;->newInstance(Ljava/lang/String;Landroid/content/Context;)Lcom/netease/util/http/AndroidHttpClient;

    move-result-object v0

    .line 425
    .local v0, httpclient:Lcom/netease/util/http/AndroidHttpClient;
    invoke-static {p0, v0}, Lcom/netease/util/HttpUtils;->initHttpClient(Landroid/content/Context;Lorg/apache/http/client/HttpClient;)V

    .line 426
    return-object v0
.end method

.method public static getDefaultHttpParams()Lorg/apache/http/params/HttpParams;
    .locals 2

    .prologue
    const/16 v1, 0xbb8

    .line 398
    new-instance v0, Lorg/apache/http/params/BasicHttpParams;

    invoke-direct {v0}, Lorg/apache/http/params/BasicHttpParams;-><init>()V

    .line 399
    .local v0, httpParameters:Lorg/apache/http/params/HttpParams;
    invoke-static {v0, v1}, Lorg/apache/http/params/HttpConnectionParams;->setConnectionTimeout(Lorg/apache/http/params/HttpParams;I)V

    .line 400
    invoke-static {v0, v1}, Lorg/apache/http/params/HttpConnectionParams;->setSoTimeout(Lorg/apache/http/params/HttpParams;I)V

    .line 401
    const-string v1, "NTES Android"

    invoke-static {v0, v1}, Lorg/apache/http/params/HttpProtocolParams;->setUserAgent(Lorg/apache/http/params/HttpParams;Ljava/lang/String;)V

    .line 402
    return-object v0
.end method

.method public static getHttpBitmapResult(Ljava/lang/String;Ljava/util/List;[Lorg/apache/http/Header;Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;)Landroid/graphics/Bitmap;
    .locals 7
    .parameter "url"
    .parameter
    .parameter "headers"
    .parameter "method"
    .parameter "encoding"
    .parameter "context"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/List",
            "<",
            "Lorg/apache/http/NameValuePair;",
            ">;[",
            "Lorg/apache/http/Header;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Landroid/content/Context;",
            ")",
            "Landroid/graphics/Bitmap;"
        }
    .end annotation

    .prologue
    .line 276
    .local p1, params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    invoke-static {p5}, Lcom/netease/util/HttpUtils;->getAndroidHttpClient(Landroid/content/Context;)Lcom/netease/util/http/AndroidHttpClient;

    move-result-object v0

    .line 279
    .local v0, httpClient:Lcom/netease/util/http/AndroidHttpClient;
    :try_start_0
    invoke-virtual {p5}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    move-object v1, p0

    move-object v2, p1

    move-object v3, p2

    move-object v4, p3

    move-object v5, p4

    .line 278
    invoke-static/range {v0 .. v6}, Lcom/netease/util/HttpUtils;->getHttpBitmapResult(Lorg/apache/http/client/HttpClient;Ljava/lang/String;Ljava/util/List;[Lorg/apache/http/Header;Ljava/lang/String;Ljava/lang/String;Landroid/content/res/Resources;)Landroid/graphics/Bitmap;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-object v1

    .line 281
    if-eqz v0, :cond_0

    .line 282
    invoke-virtual {v0}, Lcom/netease/util/http/AndroidHttpClient;->close()V

    .line 278
    :cond_0
    return-object v1

    .line 280
    :catchall_0
    move-exception v1

    .line 281
    if-eqz v0, :cond_1

    .line 282
    invoke-virtual {v0}, Lcom/netease/util/http/AndroidHttpClient;->close()V

    .line 284
    :cond_1
    throw v1
.end method

.method public static getHttpBitmapResult(Lorg/apache/http/client/HttpClient;Ljava/lang/String;Ljava/util/List;[Lorg/apache/http/Header;Ljava/lang/String;Ljava/lang/String;Landroid/content/res/Resources;)Landroid/graphics/Bitmap;
    .locals 7
    .parameter "httpClient"
    .parameter "url"
    .parameter
    .parameter "headers"
    .parameter "method"
    .parameter "encoding"
    .parameter "res"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/apache/http/client/HttpClient;",
            "Ljava/lang/String;",
            "Ljava/util/List",
            "<",
            "Lorg/apache/http/NameValuePair;",
            ">;[",
            "Lorg/apache/http/Header;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Landroid/content/res/Resources;",
            ")",
            "Landroid/graphics/Bitmap;"
        }
    .end annotation

    .prologue
    .line 302
    .local p2, params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    const/4 v0, 0x0

    .line 304
    .local v0, bitmap:Landroid/graphics/Bitmap;
    :try_start_0
    invoke-static/range {p0 .. p5}, Lcom/netease/util/HttpUtils;->doHttpExecute(Lorg/apache/http/client/HttpClient;Ljava/lang/String;Ljava/util/List;[Lorg/apache/http/Header;Ljava/lang/String;Ljava/lang/String;)Lorg/apache/http/HttpResponse;

    move-result-object v4

    .line 306
    .local v4, response:Lorg/apache/http/HttpResponse;
    if-eqz v4, :cond_0

    invoke-interface {v4}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v5

    invoke-interface {v5}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v5

    const/16 v6, 0xc8

    if-ne v5, v6, :cond_0

    .line 307
    invoke-interface {v4}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object v2

    .line 308
    .local v2, entity:Lorg/apache/http/HttpEntity;
    if-eqz v2, :cond_0

    .line 309
    invoke-interface {v2}, Lorg/apache/http/HttpEntity;->getContent()Ljava/io/InputStream;

    move-result-object v3

    .line 310
    .local v3, is:Ljava/io/InputStream;
    const/4 v5, 0x0

    invoke-static {p6, v3, v5}, Lcom/netease/util/PicUtils;->readBitmap(Landroid/content/res/Resources;Ljava/io/InputStream;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    .line 320
    .end local v2           #entity:Lorg/apache/http/HttpEntity;
    .end local v3           #is:Ljava/io/InputStream;
    .end local v4           #response:Lorg/apache/http/HttpResponse;
    :cond_0
    :goto_0
    return-object v0

    .line 313
    :catch_0
    move-exception v1

    .line 314
    .local v1, e:Ljava/lang/Exception;
    if-eqz v0, :cond_1

    .line 315
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 316
    const/4 v0, 0x0

    .line 318
    :cond_1
    const-string v5, "HttpUtils"

    const-string v6, "getHttpBitmapResult error!!!"

    invoke-static {v5, v6, v1}, Lcom/netease/util/Logger;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_0
.end method

.method public static getHttpClient(Landroid/content/Context;)Lorg/apache/http/client/HttpClient;
    .locals 2
    .parameter "context"

    .prologue
    .line 412
    new-instance v0, Lorg/apache/http/impl/client/DefaultHttpClient;

    invoke-static {}, Lcom/netease/util/HttpUtils;->getDefaultHttpParams()Lorg/apache/http/params/HttpParams;

    move-result-object v1

    invoke-direct {v0, v1}, Lorg/apache/http/impl/client/DefaultHttpClient;-><init>(Lorg/apache/http/params/HttpParams;)V

    .line 413
    .local v0, httpclient:Lorg/apache/http/impl/client/DefaultHttpClient;
    invoke-static {p0, v0}, Lcom/netease/util/HttpUtils;->initHttpClient(Landroid/content/Context;Lorg/apache/http/client/HttpClient;)V

    .line 414
    return-object v0
.end method

.method public static getHttpJSONArrayResult(Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Landroid/content/Context;)Lorg/json/JSONArray;
    .locals 4
    .parameter "url"
    .parameter
    .parameter "method"
    .parameter "context"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/List",
            "<",
            "Lorg/apache/http/NameValuePair;",
            ">;",
            "Ljava/lang/String;",
            "Landroid/content/Context;",
            ")",
            "Lorg/json/JSONArray;"
        }
    .end annotation

    .prologue
    .line 77
    .local p1, params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    invoke-static {p0, p1, p2, p3}, Lcom/netease/util/HttpUtils;->getHttpStringResult(Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    .line 79
    .local v1, str:Ljava/lang/String;
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 81
    :try_start_0
    new-instance v2, Lorg/json/JSONArray;

    invoke-direct {v2, v1}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 86
    :goto_0
    return-object v2

    .line 82
    :catch_0
    move-exception v0

    .line 83
    .local v0, e:Ljava/lang/Exception;
    const-string v2, "HttpUtils"

    const-string v3, "getHttpJSONObjectResult error!!!"

    invoke-static {v2, v3, v0}, Lcom/netease/util/Logger;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 86
    .end local v0           #e:Ljava/lang/Exception;
    :cond_0
    const/4 v2, 0x0

    goto :goto_0
.end method

.method public static getHttpJSONArrayResult(Lorg/apache/http/client/HttpClient;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;)Lorg/json/JSONArray;
    .locals 5
    .parameter "httpclient"
    .parameter "url"
    .parameter
    .parameter "method"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/apache/http/client/HttpClient;",
            "Ljava/lang/String;",
            "Ljava/util/List",
            "<",
            "Lorg/apache/http/NameValuePair;",
            ">;",
            "Ljava/lang/String;",
            ")",
            "Lorg/json/JSONArray;"
        }
    .end annotation

    .prologue
    .line 103
    .local p2, params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    invoke-static {p0, p1, p2, p3}, Lcom/netease/util/HttpUtils;->getHttpStringResult(Lorg/apache/http/client/HttpClient;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 105
    .local v1, str:Ljava/lang/String;
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 107
    :try_start_0
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "getHttpJSONArrayResult "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/util/Logger;->i(Ljava/lang/String;)V

    .line 108
    new-instance v2, Lorg/json/JSONArray;

    invoke-direct {v2, v1}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 113
    :goto_0
    return-object v2

    .line 109
    :catch_0
    move-exception v0

    .line 110
    .local v0, e:Ljava/lang/Exception;
    const-string v2, "HttpUtils"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, " getHttpJSONObjectResult error!!!"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v0}, Lcom/netease/util/Logger;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 113
    .end local v0           #e:Ljava/lang/Exception;
    :cond_0
    const/4 v2, 0x0

    goto :goto_0
.end method

.method public static getHttpJSONArrayResult(Lorg/apache/http/client/HttpClient;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Landroid/content/Context;)Lorg/json/JSONArray;
    .locals 1
    .parameter "httpclient"
    .parameter "url"
    .parameter
    .parameter "method"
    .parameter "context"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/apache/http/client/HttpClient;",
            "Ljava/lang/String;",
            "Ljava/util/List",
            "<",
            "Lorg/apache/http/NameValuePair;",
            ">;",
            "Ljava/lang/String;",
            "Landroid/content/Context;",
            ")",
            "Lorg/json/JSONArray;"
        }
    .end annotation

    .prologue
    .line 130
    .local p2, params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    invoke-static {p0, p1, p2, p3}, Lcom/netease/util/HttpUtils;->getHttpJSONArrayResult(Lorg/apache/http/client/HttpClient;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v0

    return-object v0
.end method

.method public static getHttpJSONObjectResult(Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Landroid/content/Context;)Lorg/json/JSONObject;
    .locals 5
    .parameter "url"
    .parameter
    .parameter "method"
    .parameter "context"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/List",
            "<",
            "Lorg/apache/http/NameValuePair;",
            ">;",
            "Ljava/lang/String;",
            "Landroid/content/Context;",
            ")",
            "Lorg/json/JSONObject;"
        }
    .end annotation

    .prologue
    .line 144
    .local p1, params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    invoke-static {p0, p1, p2, p3}, Lcom/netease/util/HttpUtils;->getHttpStringResult(Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    .line 146
    .local v1, str:Ljava/lang/String;
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 148
    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 153
    :goto_0
    return-object v2

    .line 149
    :catch_0
    move-exception v0

    .line 150
    .local v0, e:Ljava/lang/Exception;
    const-string v2, "HttpUtils"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, " getHttpJSONObjectResult error!!!"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v0}, Lcom/netease/util/Logger;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 153
    .end local v0           #e:Ljava/lang/Exception;
    :cond_0
    const/4 v2, 0x0

    goto :goto_0
.end method

.method public static getHttpJSONObjectResult(Lorg/apache/http/client/HttpClient;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;)Lorg/json/JSONObject;
    .locals 5
    .parameter "httpclient"
    .parameter "url"
    .parameter
    .parameter "method"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/apache/http/client/HttpClient;",
            "Ljava/lang/String;",
            "Ljava/util/List",
            "<",
            "Lorg/apache/http/NameValuePair;",
            ">;",
            "Ljava/lang/String;",
            ")",
            "Lorg/json/JSONObject;"
        }
    .end annotation

    .prologue
    .line 170
    .local p2, params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    invoke-static {p0, p1, p2, p3}, Lcom/netease/util/HttpUtils;->getHttpStringResult(Lorg/apache/http/client/HttpClient;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 172
    .local v1, str:Ljava/lang/String;
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 174
    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 179
    :goto_0
    return-object v2

    .line 175
    :catch_0
    move-exception v0

    .line 176
    .local v0, e:Ljava/lang/Exception;
    const-string v2, "HttpUtils"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, " getHttpJSONObjectResult error!!!"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v0}, Lcom/netease/util/Logger;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 179
    .end local v0           #e:Ljava/lang/Exception;
    :cond_0
    const/4 v2, 0x0

    goto :goto_0
.end method

.method public static getHttpJSONObjectResult(Lorg/apache/http/client/HttpClient;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Landroid/content/Context;)Lorg/json/JSONObject;
    .locals 1
    .parameter "httpclient"
    .parameter "url"
    .parameter
    .parameter "method"
    .parameter "context"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/apache/http/client/HttpClient;",
            "Ljava/lang/String;",
            "Ljava/util/List",
            "<",
            "Lorg/apache/http/NameValuePair;",
            ">;",
            "Ljava/lang/String;",
            "Landroid/content/Context;",
            ")",
            "Lorg/json/JSONObject;"
        }
    .end annotation

    .prologue
    .line 195
    .local p2, params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    invoke-static {p0, p1, p2, p3}, Lcom/netease/util/HttpUtils;->getHttpJSONObjectResult(Lorg/apache/http/client/HttpClient;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    return-object v0
.end method

.method public static getHttpStringResult(Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;
    .locals 2
    .parameter "url"
    .parameter
    .parameter "method"
    .parameter "context"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/List",
            "<",
            "Lorg/apache/http/NameValuePair;",
            ">;",
            "Ljava/lang/String;",
            "Landroid/content/Context;",
            ")",
            "Ljava/lang/String;"
        }
    .end annotation

    .prologue
    .line 209
    .local p1, params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    invoke-static {p3}, Lcom/netease/util/HttpUtils;->getAndroidHttpClient(Landroid/content/Context;)Lcom/netease/util/http/AndroidHttpClient;

    move-result-object v0

    .line 211
    .local v0, httpclient:Lcom/netease/util/http/AndroidHttpClient;
    :try_start_0
    invoke-static {v0, p0, p1, p2}, Lcom/netease/util/HttpUtils;->getHttpStringResult(Lorg/apache/http/client/HttpClient;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;)Ljava/lang/String;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-object v1

    .line 213
    if-eqz v0, :cond_0

    .line 214
    invoke-virtual {v0}, Lcom/netease/util/http/AndroidHttpClient;->close()V

    .line 211
    :cond_0
    return-object v1

    .line 212
    :catchall_0
    move-exception v1

    .line 213
    if-eqz v0, :cond_1

    .line 214
    invoke-virtual {v0}, Lcom/netease/util/http/AndroidHttpClient;->close()V

    .line 216
    :cond_1
    throw v1
.end method

.method public static getHttpStringResult(Lorg/apache/http/client/HttpClient;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;)Ljava/lang/String;
    .locals 7
    .parameter "httpClient"
    .parameter "url"
    .parameter
    .parameter "method"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/apache/http/client/HttpClient;",
            "Ljava/lang/String;",
            "Ljava/util/List",
            "<",
            "Lorg/apache/http/NameValuePair;",
            ">;",
            "Ljava/lang/String;",
            ")",
            "Ljava/lang/String;"
        }
    .end annotation

    .prologue
    .local p2, params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    const/4 v3, 0x0

    .line 231
    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v4, p3

    move-object v5, v3

    move-object v6, v3

    invoke-static/range {v0 .. v6}, Lcom/netease/util/HttpUtils;->getHttpStringResult(Lorg/apache/http/client/HttpClient;Ljava/lang/String;Ljava/util/List;[Lorg/apache/http/Header;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static getHttpStringResult(Lorg/apache/http/client/HttpClient;Ljava/lang/String;Ljava/util/List;[Lorg/apache/http/Header;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 6
    .parameter "httpClient"
    .parameter "url"
    .parameter
    .parameter "headers"
    .parameter "method"
    .parameter "encoding"
    .parameter "charset"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/apache/http/client/HttpClient;",
            "Ljava/lang/String;",
            "Ljava/util/List",
            "<",
            "Lorg/apache/http/NameValuePair;",
            ">;[",
            "Lorg/apache/http/Header;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ")",
            "Ljava/lang/String;"
        }
    .end annotation

    .prologue
    .line 249
    .local p2, params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    :try_start_0
    invoke-static/range {p0 .. p5}, Lcom/netease/util/HttpUtils;->doHttpExecute(Lorg/apache/http/client/HttpClient;Ljava/lang/String;Ljava/util/List;[Lorg/apache/http/Header;Ljava/lang/String;Ljava/lang/String;)Lorg/apache/http/HttpResponse;

    move-result-object v1

    .line 251
    .local v1, response:Lorg/apache/http/HttpResponse;
    if-eqz v1, :cond_1

    invoke-interface {v1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v3

    invoke-interface {v3}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v3

    const/16 v4, 0xc8

    if-ne v3, v4, :cond_1

    .line 252
    invoke-static {p6}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 253
    invoke-interface {v1}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object v3

    .line 252
    invoke-static {v3}, Lorg/apache/http/util/EntityUtils;->toString(Lorg/apache/http/HttpEntity;)Ljava/lang/String;

    move-result-object v2

    .line 254
    .local v2, retStr:Ljava/lang/String;
    :goto_0
    const-string v3, "HttpUtils"

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "getHttpStringResult:"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/netease/util/Logger;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 260
    .end local v1           #response:Lorg/apache/http/HttpResponse;
    .end local v2           #retStr:Ljava/lang/String;
    :goto_1
    return-object v2

    .line 253
    .restart local v1       #response:Lorg/apache/http/HttpResponse;
    :cond_0
    invoke-interface {v1}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object v3

    invoke-static {v3, p6}, Lorg/apache/http/util/EntityUtils;->toString(Lorg/apache/http/HttpEntity;Ljava/lang/String;)Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v2

    goto :goto_0

    .line 257
    .end local v1           #response:Lorg/apache/http/HttpResponse;
    :catch_0
    move-exception v0

    .line 258
    .local v0, e:Ljava/lang/Exception;
    const-string v3, "HttpUtils"

    const-string v4, "getHttpStringResult error!!!"

    invoke-static {v3, v4, v0}, Lcom/netease/util/Logger;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 260
    .end local v0           #e:Ljava/lang/Exception;
    :cond_1
    const/4 v2, 0x0

    goto :goto_1
.end method

.method private static initHttpClient(Landroid/content/Context;Lorg/apache/http/client/HttpClient;)V
    .locals 5
    .parameter "context"
    .parameter "httpClient"

    .prologue
    .line 436
    invoke-interface {p1}, Lorg/apache/http/client/HttpClient;->getParams()Lorg/apache/http/params/HttpParams;

    move-result-object v0

    .line 438
    .local v0, params:Lorg/apache/http/params/HttpParams;
    invoke-static {p0}, Lcom/netease/util/NetUtils;->isCMWAP(Landroid/content/Context;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 439
    new-instance v1, Lorg/apache/http/HttpHost;

    const-string v2, "10.0.0.172"

    const/16 v3, 0x50

    const-string v4, "http"

    invoke-direct {v1, v2, v3, v4}, Lorg/apache/http/HttpHost;-><init>(Ljava/lang/String;ILjava/lang/String;)V

    .line 440
    .local v1, proxy:Lorg/apache/http/HttpHost;
    const-string v2, "http.route.default-proxy"

    invoke-interface {v0, v2, v1}, Lorg/apache/http/params/HttpParams;->setParameter(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/http/params/HttpParams;

    .line 444
    .end local v1           #proxy:Lorg/apache/http/HttpHost;
    :cond_0
    return-void
.end method

.method private static print(Ljava/lang/String;Ljava/util/List;[Lorg/apache/http/Header;Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/HttpResponse;)V
    .locals 5
    .parameter "url"
    .parameter
    .parameter "headers"
    .parameter "method"
    .parameter "encoding"
    .parameter "response"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/List",
            "<",
            "Lorg/apache/http/NameValuePair;",
            ">;[",
            "Lorg/apache/http/Header;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Lorg/apache/http/HttpResponse;",
            ")V"
        }
    .end annotation

    .prologue
    .line 481
    .local p1, params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    const-string v2, "***************************************HttpUtils"

    invoke-static {v2}, Lcom/netease/util/Logger;->d(Ljava/lang/String;)V

    .line 482
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "*HttpUtils url="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/util/Logger;->d(Ljava/lang/String;)V

    .line 483
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "*HttpUtils method="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/util/Logger;->d(Ljava/lang/String;)V

    .line 484
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "*HttpUtils encoding="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/util/Logger;->d(Ljava/lang/String;)V

    .line 485
    if-eqz p1, :cond_1

    .line 486
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    .line 487
    .local v1, size:I
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "*HttpUtils params size="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/util/Logger;->d(Ljava/lang/String;)V

    .line 488
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    if-lt v0, v1, :cond_0

    .line 495
    .end local v0           #i:I
    .end local v1           #size:I
    :goto_1
    if-eqz p2, :cond_3

    .line 496
    array-length v1, p2

    .line 497
    .restart local v1       #size:I
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "*HttpUtils headers size="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/util/Logger;->d(Ljava/lang/String;)V

    .line 498
    const/4 v0, 0x0

    .restart local v0       #i:I
    :goto_2
    if-lt v0, v1, :cond_2

    .line 506
    .end local v0           #i:I
    .end local v1           #size:I
    :goto_3
    if-nez p5, :cond_4

    .line 507
    const-string v2, "*HttpUtils response=null"

    invoke-static {v2}, Lcom/netease/util/Logger;->d(Ljava/lang/String;)V

    .line 514
    :goto_4
    const-string v2, "***************************************HttpUtils"

    invoke-static {v2}, Lcom/netease/util/Logger;->d(Ljava/lang/String;)V

    .line 515
    return-void

    .line 489
    .restart local v0       #i:I
    .restart local v1       #size:I
    :cond_0
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "*HttpUtils params["

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "]=["

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lorg/apache/http/NameValuePair;

    invoke-interface {v2}, Lorg/apache/http/NameValuePair;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ","

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    .line 490
    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lorg/apache/http/NameValuePair;

    invoke-interface {v2}, Lorg/apache/http/NameValuePair;->getValue()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "]"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    .line 489
    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/util/Logger;->d(Ljava/lang/String;)V

    .line 488
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 493
    .end local v0           #i:I
    .end local v1           #size:I
    :cond_1
    const-string v2, "*HttpUtils params=null"

    invoke-static {v2}, Lcom/netease/util/Logger;->d(Ljava/lang/String;)V

    goto :goto_1

    .line 499
    .restart local v0       #i:I
    .restart local v1       #size:I
    :cond_2
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "*HttpUtils headers["

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "]=["

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    aget-object v3, p2, v0

    invoke-interface {v3}, Lorg/apache/http/Header;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ","

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    .line 500
    aget-object v3, p2, v0

    invoke-interface {v3}, Lorg/apache/http/Header;->getValue()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "]"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    .line 499
    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/util/Logger;->d(Ljava/lang/String;)V

    .line 498
    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_2

    .line 503
    .end local v0           #i:I
    .end local v1           #size:I
    :cond_3
    const-string v2, "*HttpUtils headers=null"

    invoke-static {v2}, Lcom/netease/util/Logger;->d(Ljava/lang/String;)V

    goto/16 :goto_3

    .line 509
    :cond_4
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "*HttpUtils response status_code="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 510
    invoke-interface {p5}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v3

    invoke-interface {v3}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    .line 509
    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/util/Logger;->d(Ljava/lang/String;)V

    .line 511
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "*HttpUtils response content_length="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 512
    invoke-interface {p5}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object v3

    invoke-interface {v3}, Lorg/apache/http/HttpEntity;->getContentLength()J

    move-result-wide v3

    invoke-virtual {v2, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

    .line 511
    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/util/Logger;->d(Ljava/lang/String;)V

    goto/16 :goto_4
.end method
